#include <stdlib.h>
#include <juanmabc.h>
#include "tcCheckPoints.h"

int
main(int argc, const char **argv)
{
	if(argc == 3)
	{
		unsigned int str, chps;

		jmbcCreateContext();
		tcCheckPointsCreateContext();
		tlGenStrings(1, &str);
		tcGenCheckPointses(1, &chps);
		tlStringLoadC(str, argv[1]);
		tcCheckPointsCompile(chps, str);
		tlStringUnload(str);
		tlStringLoadC(str, argv[2]);
		tcCheckPointsSave(chps, str);
		tlStringUnload(str);
		tcCheckPointsUnload(chps);
		tcDeleteCheckPointses(1, &chps);
		tlDeleteStrings(1, &str);
		jmbcDestroyContext();
	}
	else
		wprintf(L"%hs From To\n", argv[0]);

	return EXIT_SUCCESS;
}
